package org.edu.modules.message.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.edu.common.exception.EduBootException;
import org.edu.modules.message.entity.VeMsgDynamicBook;

import java.util.List;

/**
 * @Description: 动态通讯录
 * @Author: jeecg-boot
 * @Date:   2021-05-10
 * @Version: V1.0
 */
public interface IVeMsgDynamicBookService extends IService<VeMsgDynamicBook> {

	/**根节点父ID的值*/
	public static final String ROOT_PID_VALUE = "0";

	/**树节点有子节点状态值*/
	public static final String HASCHILD = "1";

	/**树节点无子节点状态值*/
	public static final String NOCHILD = "0";

	/**新增节点*/
	void addVeMsgDynamicBook(VeMsgDynamicBook veMsgDynamicBook);

	/**修改节点*/
	void updateVeMsgDynamicBook(VeMsgDynamicBook veMsgDynamicBook) throws EduBootException;

	/**删除节点*/
	void deleteVeMsgDynamicBook(String id) throws EduBootException;

	/**查询所有数据，无分页*/
    List<VeMsgDynamicBook> queryTreeListNoPage(QueryWrapper<VeMsgDynamicBook> queryWrapper);

}
